package mrms.api.repository;

import mrms.api.entity.MeetingmemberEntity;
import mrms.api.entity.MeetingmemberEntityPK;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author lenchu
 * @date 2019/02/07
 */
public interface MeetingMemberRepository extends JpaRepository<MeetingmemberEntity, MeetingmemberEntityPK> {
   List<MeetingmemberEntity> findAllByMid(int meeting);

  MeetingmemberEntity findByMidAndUid(int meeting,String account);

   List<MeetingmemberEntity> findAllByUid(String uid);
}
